package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/2/27.
 */

public class GoodsListEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public GoodsListEntity() {
        result = new Result();
        result.goodsList = new ArrayList<>();
    }

    public static class Result {
        @Expose
        @SerializedName("total_rows")
        public int total;
        @Expose
        @SerializedName("product_list")
        public List<Goods> goodsList;
    }

    public static class Goods {
        @Expose
        @SerializedName("id")
        public int id;// 商品id
        @Expose
        @SerializedName("shop_id")
        public int shopId; // 隶属商铺id
        @Expose
        @SerializedName("name")
        public String name;// 商品名称
        @Expose
        @SerializedName("shop_name")
        public String shopName;// 商铺名称
        @Expose
        @SerializedName("original_price")
        public float originalPrice;// 原价
        @Expose
        @SerializedName("discounted_price")
        public float discountedPrice;// 折后价
        @Expose
        @SerializedName("cover_image_url")
        public String image;// 封面图片地址
        @Expose
        @SerializedName("freight")
        public String freight;// 封面图片地址
        @Expose
        @SerializedName("is_buyable")
        public int isBuyable;// 是否可以购买， 0-否 1-是
    }
}
